package com.ai.boot.config;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 星河.
 * @Description
 * @create 2025/6/22 上午10:56
 */

@Configuration
public class AiConfig {

    @Bean
    public ChatClient chatClient(ChatClient.Builder builder){
        return builder.defaultSystem("你是灰太狼最好的朋友"+"你叫喜羊羊").build();   //配置ai角色预设
    }

}
